home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_gimp / INCLUDE / LIBGIMP / GIMPMENU.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  2KB  |  61 lines

  1. /* LIBGIMP - The GIMP Library                                                   
  2.  * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball                
  3.  *
  4.  * This library is free software; you can redistribute it and/or
  5.  * modify it under the terms of the GNU Library General Public
  6.  * License as published by the Free Software Foundation; either
  7.  * version 2 of the License, or (at your option) any later version.             
  8.  *                                                                              
  9.  * This library is distributed in the hope that it will be useful,              
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of               
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU            
  12.  * Library General Public License for more details.
  13.  *
  14.  * You should have received a copy of the GNU Library General Public
  15.  * License along with this library; if not, write to the
  16.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17.  * Boston, MA 02111-1307, USA.
  18.  */                                                                             
  19. #ifndef __GIMP_MENU_H__
  20. #define __GIMP_MENU_H__
  21.  
  22.  
  23. #include <gtk/gtk.h>
  24.  
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif /* __cplusplus */
  28.  
  29.  
  30.  
  31. typedef gint (*GimpConstraintFunc) (gint32   image_id,
  32.                     gint32   drawable_id,
  33.                     gpointer data);
  34. typedef void (*GimpMenuCallback)   (gint32   id,
  35.                     gpointer data);
  36.  
  37. GtkWidget* gimp_image_menu_new    (GimpConstraintFunc constraint,
  38.                    GimpMenuCallback   callback,
  39.                    gpointer           data,
  40.                    gint32             active_image);
  41. GtkWidget* gimp_layer_menu_new    (GimpConstraintFunc constraint,
  42.                    GimpMenuCallback   callback,
  43.                    gpointer           data,
  44.                    gint32             active_layer);
  45. GtkWidget* gimp_channel_menu_new  (GimpConstraintFunc constraint,
  46.                    GimpMenuCallback   callback,
  47.                    gpointer           data,
  48.                    gint32             active_channel);
  49. GtkWidget* gimp_drawable_menu_new (GimpConstraintFunc constraint,
  50.                    GimpMenuCallback   callback,
  51.                    gpointer           data,
  52.                    gint32             active_drawable);
  53.  
  54.  
  55. #ifdef __cplusplus
  56. }
  57. #endif /* __cplusplus */
  58.  
  59.  
  60. #endif /* __GIMP_MENU_H__ */
  61.